<?php

namespace PhpYes\Com;


interface CacheInterface
{
    /**
     * @param string $key
     * @return string
     */
    public function get($key);

    // public function mget(array $array);

    /**
     * Remove specified keys.
     *
     * @param   int|array $key An array of keys, or an undefined number of parameters, each a key: key1 key2 key3 ... keyN
     * @return int - Number of keys deleted.
     */
    public function del($key);

    /**
     * @param string $key
     * @param int $ttl - seconds, time to live
     * @param string $val
     * @return bool
     */
    public function set($key, $ttl, $val);

}